#ifndef _SIM_I2C_DEV_H__
#define _SIM_I2C_DEV_H__
#include "my_gpio.h"
/*返回值0成功*/

void sim_i2c_gpio_enable(void);
void sim_i2c_gpio_disable(void);

uint8_t i2c_write_reg(uint8_t slaveAddr, uint8_t regAddr, uint8_t *data, uint16_t nbytes);
uint8_t i2c_read_reg(uint8_t slaveAddr, uint8_t regAddr, uint8_t *buffer, uint16_t nbytes);
uint8_t i2c_write_reg_onebyte(uint8_t dev_addr, uint8_t reg_addr, uint8_t data);

#endif /* HAL_DRIVER_SIM_I2C_H_ */


